

#include "adc.h"
#include "adc_app.h"
#include "log.h"

adc_value adc_value_st;
void adc_get(void)
{
    adc_value_st.adc1_ch03_PA6 = ADC_GetData(ADC1, ADC1_Channel_03_PA6);
	adc_value_st.adc3_ch12_PB0 = ADC_GetData(ADC3, ADC3_Channel_12_PB0);
	adc_value_st.adc4_ch03_PB12 = ADC_GetData(ADC4, ADC4_Channel_03_PB12);
#if 0
	LOG_DEBUG("adc1_ch03_PA6 %d\r\n", adc_value_st.adc1_ch03_PA6);
	LOG_DEBUG("adc3_ch12_PB0 %d\r\n", adc_value_st.adc3_ch12_PB0);
	LOG_DEBUG("adc4_ch03_PB12 %d\r\n", adc_value_st.adc4_ch03_PB12);
#else
//	LOG_DEBUG("Fan_Sample[%4d,%4d,%4d]\r\n",
//	adc_value_st.adc1_ch03_PA6,
//	adc_value_st.adc3_ch12_PB0,
//	adc_value_st.adc4_ch03_PB12);
#endif

}